package com.padakeji.android.tumou;

import android.util.Log;

import com.baidu.mapapi.SDKInitializer;
import com.padakeji.android.pworks.app.PadaApplication;

/**
 * Created by AtanL on 2015-08-28.
 */
public class TuMouApplication extends PadaApplication {

    private static TuMouApplication instance;

    /**
     * 注意，这个方法只能在程序启动后才能正常使用，否则只会返回null。
     *
     * @return
     */
    public static TuMouApplication getInstance() {
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        SDKInitializer.initialize(this);
        instance = this;
    }

    @Override
    public void uncaughtException(Thread thread, Throwable ex) {
        ex.printStackTrace();
    }

}
